package com.wk.springboot.contants;

/**
 * @Classname ExportCont
 * @Description 导出es常量
 * @Date 2020/5/30 9:37
 * @Author by weikai
 */
public final class ExportCont {

  private ExportCont() {
  }

  /**
   * 默认编码
   */
  public static final String ENCODING = "UTF-8";

  /**
   * 行分隔符
   */
  public static final String ROW_SPLIT = "\r\n";

  /**
   * 字段分隔符
   */
  public static final String COLUMN_SPLIT = "$";

  /**
   * 字段分隔符
   */
  public static final String DEFAULTPARENT = "FLAT.";

  /**
   * 读取DataSource.xml文件时，各个属性的分隔符
   */
  // public static final String DATASOURCESPLIT = "#";

  /**
   * 要进行代码值转换的表中，每size插入一次数据
   */
  public static final int SIZE = 50000;

  public static final int exceedTime = 300;

  //像Elasticsearch中分批导出数据时，上一批次保留的记录数为1000
  public static final int LEFTSIZE = 1000;
  //记录elasticsearch的版本号

  public static final String ESVERSION721 = "7.2.1";

  public static final String ESVERSION732 = "7.3.2";

  public static final String ESVERSION740 = "7.4.0";

  public static final String ESVERSION = "5.6.1";

  public static final String TRANSWARPESVERSION = "5.4.1";


  /**
   * 导出的文件类型
   */
  public final static class Export {

    private Export() {
    }

    public static final String DEFAULT = "DEFAULT";

    public static final String PETABASE = "PETABASE";

    public static final String ARTERYBASE = "ARTERYBASE";

    public static final String GREENPLUM = "GREENPLUM";

    public static final String GREENPLUM_LOAD= "GREENPLUM_LOAD";

    public static final String ELASTICSEARCH = "ELASTICSEARCH";

    public static final String SYBASE_IQ = "SYBASE_IQ";

    public static final String INCEPTOR = "INCEPTOR";

    public static final String HBASE = "HBASE";

    public static final String MYSQL = "mysql";

    public static final String DM = "DM";
  }
}
